//
//  ViewController.m
//  检测版本更新
//
//  Created by zxy on 2018/4/11.
//  Copyright © 2018年 foxconn. All rights reserved.
//

#import "ViewController.h"
#import "MTVersionHelper.h"
#import "CustomAlertController.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    //使用自定义
//    [MTVersionHelper checkNewVersionAndCustomAlert:^(MTVersionModel *appInfo) {
//        //CustomView
////        NSLog(@"在这里面可以自定义弹出view，然后添加到控制器view上就可以了");
//        NSLog(@"版本更新日志=%@",appInfo.releaseNotes);
//    }];
    
    
}

-(void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    /*
    CustomAlertController *ctl = [CustomAlertController alertControllerWithTitle:@"标题" message:@"消息" preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction *ok = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
        
    }];
    UIAlertAction *cancel = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil];
    [ctl addAction:cancel];
    [ctl addAction:ok];
    [self presentViewController:ctl animated:YES completion:nil];
    */
    
}





@end
